home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / 17 controls / databindingdemo / statupform.vb < prev   
Text File  |  2001-10-21  |  5KB  |  139 lines

  1. Public Class Form1
  2.     Inherits System.Windows.Forms.Form
  3.  
  4. #Region " Windows Form Designer generated code "
  5.  
  6.     Public Sub New()
  7.         MyBase.New()
  8.  
  9.         'This call is required by the Windows Form Designer.
  10.         InitializeComponent()
  11.  
  12.         'Add any initialization after the InitializeComponent() call
  13.  
  14.     End Sub
  15.  
  16.     'Form overrides dispose to clean up the component list.
  17.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  18.         If disposing Then
  19.             If Not (components Is Nothing) Then
  20.                 components.Dispose()
  21.             End If
  22.         End If
  23.         MyBase.Dispose(disposing)
  24.     End Sub
  25.     Friend WithEvents Button1 As System.Windows.Forms.Button
  26.     Friend WithEvents Button2 As System.Windows.Forms.Button
  27.     Friend WithEvents Button3 As System.Windows.Forms.Button
  28.     Friend WithEvents Button4 As System.Windows.Forms.Button
  29.     Friend WithEvents Button5 As System.Windows.Forms.Button
  30.     Friend WithEvents Button6 As System.Windows.Forms.Button
  31.  
  32.     'Required by the Windows Form Designer
  33.     Private components As System.ComponentModel.Container
  34.  
  35.     'NOTE: The following procedure is required by the Windows Form Designer
  36.     'It can be modified using the Windows Form Designer.  
  37.     'Do not modify it using the code editor.
  38.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  39.         Me.Button1 = New System.Windows.Forms.Button()
  40.         Me.Button2 = New System.Windows.Forms.Button()
  41.         Me.Button3 = New System.Windows.Forms.Button()
  42.         Me.Button4 = New System.Windows.Forms.Button()
  43.         Me.Button5 = New System.Windows.Forms.Button()
  44.         Me.Button6 = New System.Windows.Forms.Button()
  45.         Me.SuspendLayout()
  46.         '
  47.         'Button1
  48.         '
  49.         Me.Button1.Location = New System.Drawing.Point(24, 16)
  50.         Me.Button1.Name = "Button1"
  51.         Me.Button1.Size = New System.Drawing.Size(144, 40)
  52.         Me.Button1.TabIndex = 0
  53.         Me.Button1.Text = "Simple Binding"
  54.         '
  55.         'Button2
  56.         '
  57.         Me.Button2.Location = New System.Drawing.Point(24, 64)
  58.         Me.Button2.Name = "Button2"
  59.         Me.Button2.Size = New System.Drawing.Size(144, 40)
  60.         Me.Button2.TabIndex = 0
  61.         Me.Button2.Text = "ComboBox binding"
  62.         '
  63.         'Button3
  64.         '
  65.         Me.Button3.Location = New System.Drawing.Point(24, 112)
  66.         Me.Button3.Name = "Button3"
  67.         Me.Button3.Size = New System.Drawing.Size(144, 40)
  68.         Me.Button3.TabIndex = 0
  69.         Me.Button3.Text = "ADO.NET components"
  70.         '
  71.         'Button4
  72.         '
  73.         Me.Button4.Location = New System.Drawing.Point(24, 160)
  74.         Me.Button4.Name = "Button4"
  75.         Me.Button4.Size = New System.Drawing.Size(144, 40)
  76.         Me.Button4.TabIndex = 0
  77.         Me.Button4.Text = "ADO.NET binding"
  78.         '
  79.         'Button5
  80.         '
  81.         Me.Button5.Location = New System.Drawing.Point(24, 208)
  82.         Me.Button5.Name = "Button5"
  83.         Me.Button5.Size = New System.Drawing.Size(144, 40)
  84.         Me.Button5.TabIndex = 0
  85.         Me.Button5.Text = "DataGrid"
  86.         '
  87.         'Button6
  88.         '
  89.         Me.Button6.Location = New System.Drawing.Point(24, 256)
  90.         Me.Button6.Name = "Button6"
  91.         Me.Button6.Size = New System.Drawing.Size(144, 40)
  92.         Me.Button6.TabIndex = 0
  93.         Me.Button6.Text = "MasterDetail"
  94.         '
  95.         'Form1
  96.         '
  97.         Me.AutoScaleBaseSize = New System.Drawing.Size(7, 17)
  98.         Me.ClientSize = New System.Drawing.Size(192, 317)
  99.         Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button6, Me.Button5, Me.Button4, Me.Button3, Me.Button2, Me.Button1})
  100.         Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 11!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  101.         Me.Name = "Form1"
  102.         Me.Text = "Form1"
  103.         Me.ResumeLayout(False)
  104.  
  105.     End Sub
  106.  
  107. #End Region
  108.  
  109.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  110.         Dim frm As New SimpleBindingForm()
  111.         frm.Show()
  112.     End Sub
  113.  
  114.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  115.         Dim frm As New ListComboBoxBindingForm()
  116.         frm.Show()
  117.     End Sub
  118.  
  119.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  120.         Dim frm As New DatabaseBindingForm()
  121.         frm.Show()
  122.     End Sub
  123.  
  124.     Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  125.         Dim frm As New AdoNetBindingForm()
  126.         frm.Show()
  127.     End Sub
  128.  
  129.     Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
  130.         Dim frm As New DataGridForm()
  131.         frm.Show()
  132.     End Sub
  133.  
  134.     Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
  135.         Dim frm As New MasterDetailGridsForm()
  136.         frm.Show()
  137.     End Sub
  138. End Class
  139.